package cs341.cs.uwosh.edu.jBeats;

public class User{
        private String username, favoriteBand, favoriteGenre, favoriteSong, location, password;
        private int age;
        private String gender;
        boolean admin = false;
        public User(String u, String p)
        {
                username = u;
                password = p;
                favoriteBand = "CCR";
                favoriteGenre = "Classical";
                favoriteSong = "Home on the Bayou";
//where user lives
                location = "Not set";
                
                age = 0;
                gender = "Male";
        }
        public User(String u)
        {
                username = u;
                password = "mypasswordsucks";
                favoriteBand = "CCR";
                favoriteGenre = "Classical";
                favoriteSong = "Home on the Bayou";
//where user lives
                location = "Not set";
                
                age = 0;
                gender = "Male";
        }

//SET METHODS   
        public void setUserName(String u)
        {
                username = u;
        }
        public void setFavoriteBand(String f)
        {
                favoriteBand = f;
        }
        public void setFavoriteGenre(String g)
        {
                favoriteGenre = g;
        }
        public void setFavoriteSong(String f)
        {
                favoriteSong = f;
        }
        public void setLocation(String l)
        {
                location = l;
        }

        public void setAge(int a)
        {
                if(a > 0)
                        age = a;
        }
        
        public void setGender(String g)
        {
                        gender = g;
        }      
        public void setAdmin(boolean a)
        {
            admin=a;
        }






//GET METHODS
        public boolean getAdmin()
        {
            return admin;
        }
        public String getUserName()
        {
                return username;
        }
        public String getFavoriteBand()
        {
                return favoriteBand;
        }
        public String getFavoriteGenre()
        {
                return favoriteGenre;
        }
        public String getFavoriteSong()
        {
                return favoriteSong;
        }
        public String getLocation()
        {
                return location;
        }

        public int getAge()
        {
                return age;
        }
        
        public String getGender()
        {
                return gender;
        }

}